﻿using System.Collections.Generic;

namespace Generator
{
    public class Flaws
    {
        public byte AssistantsHourLimit;
        public byte StoreRunnersHourLimit;

        public Flaws()
        {
            StoreAssistants = new Dictionary<int, double>();
            StoreRunners = new Dictionary<int, double>();
        }

        public bool Any
        {
            get
            {
                return (StoreAssistants.Count + StoreRunners.Count) > 0;
            }
        }

        public Dictionary<int, double> StoreAssistants { get; private set; }

        public Dictionary<int, double> StoreRunners { get; private set; }

        public void AddStoreRunner(int pID, double pHours)
        {
            StoreRunners.Add(pID, pHours);
        }

        public void AddStoreAssistant(int pID, double pHours)
        {
            StoreAssistants.Add(pID, pHours);
        }
    }
}
